package com.fowo.api.model.supplier.flow.form.relation;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import java.util.List;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 供应商流程表单实例 导入导出辅助模型 */
@Getter
@Setter
public class SupplierFlowFormRelationExcelPo {

  @Size(max = 1024, message = "标题长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "标题")
  private String title;

  @Size(max = 128, message = "编号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "编号")
  private String code;

  @NotBlank(message = "任务编码不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*任务编码")
  private String enCode;

  @NotNull(message = "流程节点不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*流程节点")
  private String flowNodeIdEnCode;

  @ExcelIgnore
  @ExcelProperty(value = "*流程节点")
  private Long flowNodeId;

  @NotNull(message = "表单id不能为空")
  @ExcelProperty(value = "*表单id")
  private Long formId;

  @NotBlank(message = "表单状态不能为空")
  @Size(max = 50, message = "表单状态长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*表单状态")
  private String formStatus;

  @Size(max = 50, message = "发起人长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "发起人")
  private String startUserName;

  @ExcelIgnore
  @ExcelProperty(value = "发起人")
  private List<Long> startUser;

  @NotNull(message = "执行人不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*执行人")
  private String doUserName;

  @ExcelIgnore
  @ExcelProperty(value = "*执行人")
  private List<Long> doUser;

  @NotNull(message = "拾取人不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*拾取人")
  private String toUserName;

  @ExcelIgnore
  @ExcelProperty(value = "*拾取人")
  private List<Long> toUser;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "转发人")
  private String forwardUserName;

  @ExcelIgnore
  @ExcelProperty(value = "转发人")
  private List<Long> forwardUser;

  @NotNull(message = "经办人不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*经办人")
  private String operatorUserName;

  @ExcelIgnore
  @ExcelProperty(value = "*经办人")
  private List<Long> operatorUser;

  @DateTimeFormat("yyyy年MM月dd日HH:mm:ss")
  @ExcelProperty(value = "截止时间")
  private java.util.Date endTime;
}
